﻿using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using C3.XNA;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SomeGame.GUI.Widgets;

namespace SomeGame.Tools {

    public static class DebugHelper {

        public static readonly IList<Vector2[]> ShotgunPellets = new List<Vector2[]>();

        public static void DebugWidget(Widget widget, string message) {
            Debug.WriteLine("{0}. ID: {1}, Bounds: {2}, Width: {3}, Height: {4}",
                message,
                widget.ID ?? "null",
                widget.Bounds,
                widget.Width,
                widget.Height);
        }

        public static void WriteLine(object value) {
            Debug.WriteLine(value);
        }

        public static void Draw() {
            for (int i = 0; i < ShotgunPellets.Count; i++) {
                GameEngine.SpriteBatch.DrawLine(ShotgunPellets[i][0], ShotgunPellets[i][1], Color.AliceBlue);
            }
        }

    }

}